package org.cfx.org.utils;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
 * @author RTX 9090
 */
@Tag(name = "响应Ajax数据")
public class AjaxResult {
    @Schema(description = "状态")
    private Boolean success = true;
    @Schema(description = "操作提示信息")
    private String message = "操作成功";
    @Schema(description = "返回的数据")
    private  Object data;

    public AjaxResult me(){
        return new AjaxResult();
    }

    public Boolean getSuccess() {
        return success;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getData() {
        return data;
    }

    public AjaxResult setData(Object data) {
        this.data = data;
        return this;
    }
}
